import http from "../http";



function add( params: any = {}) {
    return http.myRequest({
        url: '/supplier/add',
        method: 'post',
        data: params,
    })
}
function update( params: any = {}) {
    return http.myRequest({
        url: '/supplier/update',
        method: 'post',
        data: params,
    })
}
function removeById( params: any = {}) {
    return http.myRequest({
        url: '/supplier/removeById',
        method: 'post',
        data: params,
        header:{
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    })
}
function queryList( params: any = {}) {
    return http.myRequest({
        url: '/supplier/queryList',
        method: 'post',
        data: params,

    })
}



export default {
    add,
    update,
    removeById,
    queryList

}

